// type Point = {
//     x: number;
//     y: number;
// };
//
// function distance(point1: Point, point2: Point): number {
//     const dx = point2.x - point1.x;
//     const dy = point2.y - point1.y;
//     return Math.sqrt(dx ** 2 + dy ** 2);
// }
//
// const p1: Point = { x: 0, y: 0 };
// const p2: Point = { x: 6, y: 8 };
// const d = distance(p1, p2);
// console.log(d);
//10
// 创建一个customer对象
var customer = {
    username: "ShirDon",
    userId: 18,
    email: "shirdon@example.com"
};
// 访问和使用customer对象的键
var keys = ["username", "userId", "email"];
keys.forEach(function (key) {
    console.log("Key: ".concat(key, ", Value: ").concat(customer[key]));
});
